Pair

interface Pair

A key-value pair that represents a segment of a form data, for example a form field content.

Functions

Link copied to clipboard
open fun key(): String
Returns a string that represents the form content segment key.
Link copied to clipboard
open fun of(key: String, value: String): FormData.Pair
Returns the Pair instance for the given key and value.
Link copied to clipboard
open fun value(): String
Returns a string that represents the form content segment value or an empty string if the key does not correspond to any value.